TEMPLATE = app
TARGET = lprog
CONFIG += testlib
QT += core \
    gui \
    network \
    xml \
    testlib
HEADERS += Gui/PlanetControls.hh \
    Gui/PlanetToolbar.hh \
    World/Fleet/AttackFleet.hh \
    Network/FleetAttackFleet.hh \
    Exception.hh \
    Geom/Geom.hh \
    Geom/Vector.hh \
    Globals.hh \
    Gui/Bolygo.hh \
    Gui/ConnectWindow.hh \
    Gui/Csillag.hh \
    Gui/Flotta.hh \
    Gui/GameControls.hh \
    Gui/GameWindow.hh \
    Gui/Gui.hh \
    Gui/Hatter.hh \
    Gui/MainWindow.hh \
    Gui/NewGameWindow.hh \
    Gui/PlanetToolbar.hh \
    Network/ChatBroadcast.hh \
    Network/ChatFromClient.hh \
    Network/ClientState.hh \
    Network/ConnectionState.hh \
    Network/Done.hh \
    Network/FleetAttackPlanet.hh \
    Network/FleetColonizePlanet.hh \
    Network/FleetMove.hh \
    Network/GameList.hh \
    Network/GameMessage.hh \
    Network/GetGameList.hh \
    Network/InitMessage.hh \
    Network/JoinGame.hh \
    Network/Network.hh \
    Network/NewGame.hh \
    Network/NextTurn.hh \
    Network/PlanetAddTask.hh \
    Network/PlanetDelTask.hh \
    Network/PlayerJoined.hh \
    Network/StateChanged.hh \
    Network/XmlClient.hh \
    Network/XmlMessage.hh \
    Network/XmlServer.hh \
    Network/XmlServerThread.hh \
    Network/XmlSocket.hh \
    Test/ServerTest.hh \
    Test/Test.hh \
    World/Fleet/AttackPlanet.hh \
    World/Fleet/ColonizePlanet.hh \
    World/Fleet/Command.hh \
    World/Fleet.hh \
    World/Fleet/Move.hh \
    World/Fleet/Noop.hh \
    World/Galaxy.hh \
    World/Interfaces/IGalaxy.hh \
    World/Interfaces/IGalaxy.hh \
    World/Planet/BuildBattleship.hh \
    World/Planet/BuildColonyship.hh \
    World/Planet/BuildDwelling.hh \
    World/Planet/BuildFactory.hh \
    World/Planet/BuildFarm.hh \
    World/Planet/BuildFighter.hh \
    World/Planet/BuildProducts.hh \
    World/Planet/BuildReactor.hh \
    World/Planet/BuildTank.hh \
    World/Planet/BuildTransportship.hh \
    World/Planet.hh \
    World/Planet/Task.hh \
    World/Player.hh \
    World/Star.hh \
    World/User.hh \
    World/World.hh
SOURCES += Gui/PlanetControls.cc \
    World/Fleet/AttackFleet.cc \
    Network/FleetAttackFleet.cc \
    Globals.cc \
    Gui/Bolygo.cc \
    Gui/ConnectWindow.cc \
    Gui/Csillag.cc \
    Gui/Flotta.cc \
    Gui/GameControls.cc \
    Gui/GameWindow.cc \
    Gui/Hatter.cc \
    Gui/MainWindow.cc \
    Gui/NewGameWindow.cc \
    Gui/PlanetToolbar.cc \
    main.cpp \
    Network/ChatBroadcast.cc \
    Network/ChatFromClient.cc \
    Network/Done.cc \
    Network/FleetAttackPlanet.cc \
    Network/FleetColonizePlanet.cc \
    Network/FleetMove.cc \
    Network/GameList.cc \
    Network/GameMessage.cc \
    Network/GetGameList.cc \
    Network/InitMessage.cc \
    Network/JoinGame.cc \
    Network/NewGame.cc \
    Network/NextTurn.cc \
    Network/PlanetAddTask.cc \
    Network/PlanetDelTask.cc \
    Network/PlayerJoined.cc \
    Network/StateChanged.cc \
    Network/XmlClient.cc \
    Network/XmlMessage.cc \
    Network/XmlServer.cc \
    Network/XmlServerThread.cc \
    Network/XmlSocket.cc \
    Test/ServerTest.cc \
    World/Fleet/AttackPlanet.cc \
    World/Fleet.cc \
    World/Fleet/ColonizePlanet.cc \
    World/Fleet/Move.cc \
    World/Fleet/Noop.cc \
    World/Galaxy.cc \
    World/Interfaces/IGalaxy.cc \
    World/Interfaces/IGalaxy.cc \
    World/Planet/BuildBattleship.cc \
    World/Planet/BuildColonyship.cc \
    World/Planet/BuildDwelling.cc \
    World/Planet/BuildFactory.cc \
    World/Planet/BuildFarm.cc \
    World/Planet/BuildFighter.cc \
    World/Planet/BuildProducts.cc \
    World/Planet/BuildReactor.cc \
    World/Planet/BuildTank.cc \
    World/Planet/BuildTransportship.cc \
    World/Planet.cc \
    World/Planet/Task.cc \
    World/Player.cc \
    World/Star.cc \
    World/User.cc
FORMS += Gui/PlanetControls.ui \
    Gui/PlanetToolbar.ui \
    Gui/GameControls.ui \
    Gui/Hatter.ui \
    Gui/GameWindow.ui \
    Gui/NewGameWindow.ui \
    Gui/NewGameWindow.ui \
    Gui/ConnectWindow.ui \
    Gui/MainWindow.ui \
    Gui/PlanetToolbar.ui
RESOURCES += 
QMAKE_CXXFLAGS += -Wall \
    -Wextra \
    -Werror
QMAKE_LFLAGS += -lboost_random-mt
QMAKE_POST_LINK = ./fix-binary.sh \
    $(TARGET)
